# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class ProductItem(scrapy.Item):
    # define the fields for your item here like:

    # percent = scrapy.Field()  # 记录爬取进度，保存两个值，一个当前，一个总共
    total = scrapy.Field()

    source = scrapy.Field()  # 定义该item属于的购物网站
    keyword = scrapy.Field()  # 关键字
    trans_key = scrapy.Field()  # 英文关键字

    id = scrapy.Field()
    name = scrapy.Field()
    price = scrapy.Field()
    images = scrapy.Field()

    # url = scrapy.Field()


class ScoreItem(scrapy.Item):
    # id = scrapy.Field()
    term = scrapy.Field()
    course_num = scrapy.Field()
    course_name = scrapy.Field()
    score = scrapy.Field()
    credit = scrapy.Field()  # 学分





